//
//  GYAddInvoiceTableViewCell.m
//  GoodLuck
//
//  Created by apple on 2018/3/28.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//
static NSString *addInvoiceCellIdentifier = @"addInvoiceCellIdentifier";
#import "GYAddInvoiceTableViewCell.h"


@interface GYAddInvoiceTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *stateImageview;


@end

@implementation GYAddInvoiceTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}


+ (instancetype)cellWithTableView:(UITableView *)tableView {
    GYAddInvoiceTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:addInvoiceCellIdentifier];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil] firstObject];
    }
    
    return cell;
}

- (void)setAddInvoice:(BOOL)addInvoice {
    _addInvoice = addInvoice;
    
    if (addInvoice) {
        self.stateImageview.image = [UIImage imageNamed:@"xuanzhong"];
    }else {
        self.stateImageview.image = [UIImage imageNamed:@"weixuanzhong"];
    }
}
@end
